package com.heima.mapper;

import com.github.pagehelper.Page;
import com.heima.pojo.vo.Classify2VO;
import com.heima.pojo.skuClass;
import org.apache.ibatis.annotations.*;

@Mapper
public interface ClassifyMapper {


    Page<skuClass> getClassify(@Param("className") String className);

    @Insert("insert into tb_sku_class (class_name) values(#{className})")
    Boolean addClassixfy(@Param("className") String className);


    Classify2VO selectIdClassify(String classId);

    Boolean updateClassify(String classId, String className);
    @Delete("delete from tb_sku_class where class_id = #{classId}")
    Boolean deleteClassify(String classId);
}
